# -*- coding:UTF-8 -*-
from aligo import Aligo
from core.file import File


class AliyunDriveFile(File):
    ali = Aligo()

    def __init__(self):
        super(AliyunDriveFile, self).__init__()


if __name__ == '__main__':
    ali = Aligo()
    user = ali.get_user()  # 获取用户信息
    ll = ali.get_file_list()  # 获取网盘根目录文件列表
    # 遍历文件列表
    for file in ll:
        print(file.file_id, file.name, file.type)